package com.fly.service.Impl;

import com.fly.bean.DamageRecord;
import com.fly.bean.SystemPropertiesValue;
import com.fly.bean.Users;
import com.fly.bean.WorkForm;
import com.fly.mapper.AddFixTaskMapper;
import com.fly.service.AddFixTaskService;
import com.fly.vo.AddFix_WH;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AddFixTaskServiceImpl implements AddFixTaskService {

    @Resource
    private AddFixTaskMapper addFixTaskMapper;

    @Override
    public List<WorkForm> selectAllWorkForm() {
        return addFixTaskMapper.selectAllWorkForm();
    }

    @Override
    public List<Users> selectAllLineUser() {
        return addFixTaskMapper.selectAllLineUser();
    }

    @Override
    public List<Users> selectAllFixUser() {
        return addFixTaskMapper.selectAllFixUser();
    }

    @Override
    public List<DamageRecord> selectPoleDamage() {
        return addFixTaskMapper.selectPoleDamage();
    }

    @Override
    public int selectIdByState(SystemPropertiesValue systemPropertiesValue) {
        return addFixTaskMapper.selectIdByState(systemPropertiesValue);
    }

    @Override
    public int addTask(AddFix_WH addFix_wh) {
        return addFixTaskMapper.addTask(addFix_wh);
    }

    @Override
    public int selectTaskByTaskNo(AddFix_WH addFix_wh) {
        return addFixTaskMapper.selectTaskByTaskNo(addFix_wh);
    }

    @Override
    public int addFix(AddFix_WH addFix_wh) {
        return addFixTaskMapper.addFix(addFix_wh);
    }

    @Override
    public int selectFixByTaskId(AddFix_WH addFix_wh) {
        return addFixTaskMapper.selectFixByTaskId(addFix_wh);
    }

    @Override
    public int addTaskUserRelation(AddFix_WH addFix_wh) {
        return addFixTaskMapper.addTaskUserRelation(addFix_wh);
    }

    @Override
    public int addPoleFixRelation(AddFix_WH addFix_wh) {
        return addFixTaskMapper.addPoleFixRelation(addFix_wh);
    }

    @Override
    public int updatePoleDamageState(AddFix_WH addFix_wh) {
        return addFixTaskMapper.updatePoleDamageState(addFix_wh);
    }

    @Override
    public List<DamageRecord> selectPoleDamageByFixId(int fixId) {
        return addFixTaskMapper.selectPoleDamageByFixId(fixId);
    }
}
